import 采集店铺列表 as shop_list_func
import 采集店铺详情 as shop_detail_func

import random
import time


if __name__ == '__main__':
    for url in shop_list_func.main():
        try:
            shop_detail_func.main(url)
            time.sleep(random.uniform(1.5, 2.5))
        except:
            try:
                shop_detail_func.main(url)
                time.sleep(random.uniform(1.5, 2.5))
            except:
                pass

